gtk4.git
6 years agotestsuite: Add an inset shadow rendering test case
Timm Bäder [Sat, 30 Nov 2019 08:26:01 +0000 (09:26 +0100)]
testsuite: Add an inset shadow rendering test case

6 years agogl renderer: Cache current scale in RenderOpBuilder
Timm Bäder [Fri, 29 Nov 2019 13:40:20 +0000 (14:40 +0100)]
gl renderer: Cache current scale in RenderOpBuilder

We call ops_get_scale a lot, so this should be better. It will also make
a later x/y split for the scaling easier.

6 years agocssshadowvalue: Simplify inset shadow nodes to color nodes if possible
Timm Bäder [Fri, 29 Nov 2019 12:34:22 +0000 (13:34 +0100)]
cssshadowvalue: Simplify inset shadow nodes to color nodes if possible

inset shadows like this are frequently used to implement highlights in
CSS without crowing them min size of the element.

6 years agogl renderer: Save one level of indentation
Timm Bäder [Fri, 29 Nov 2019 09:47:40 +0000 (10:47 +0100)]
gl renderer: Save one level of indentation

6 years agowindow: Don't set invalid csd input shape
Timm Bäder [Fri, 29 Nov 2019 09:02:14 +0000 (10:02 +0100)]
window: Don't set invalid csd input shape

This might happen if the CSS values of the decoration node are broken,
e.g. if people *accidentally* type large negative values for the
margins.

Fixes #2268

6 years agosnapshot: Reorder color matrix nodes containing a transform node
Timm Bäder [Fri, 29 Nov 2019 08:14:55 +0000 (09:14 +0100)]
snapshot: Reorder color matrix nodes containing a transform node

A color matrix node that contains a transform node can also be expressed
the other way around, as a transform node containing a color matrix
node.

In the general case, the color matrix node will have to draw its
child to a texture so it can color every pixel of that texture, but the
renderers can short-cut this if the child of the color matrix node is
already a texture node. So if we have a node tree like

Color Matrix
    - Transform
        - Texture

The renderer would have to either check the grandchild of the color
matrix or simply fall back to rendering the transform node to a texture.

In the new configuration:

Transform
    - Color Matrix
        - Texture

The renderer can easily see that the child node of the color matrix node
is a texture, and skip rendering it to a texture.

This is for example happening in current Adwaita for spinners, which are
rotated symbolics.

6 years agosnapshot: Factor out color matrix merging
Timm Bäder [Fri, 29 Nov 2019 08:13:27 +0000 (09:13 +0100)]
snapshot: Factor out color matrix merging

We will use that elsewhere in the next commit.

6 years agogl renderer: Implement blurred shadow nodes
Timm Bäder [Fri, 29 Nov 2019 05:54:43 +0000 (06:54 +0100)]
gl renderer: Implement blurred shadow nodes

6 years agogl renderer: Take a TextureRegion in blur_texture
Timm Bäder [Fri, 29 Nov 2019 05:53:57 +0000 (06:53 +0100)]
gl renderer: Take a TextureRegion in blur_texture

So we can refer to textures on a texture atlas.

6 years agogl renderer: Scale blur radius
Timm Bäder [Fri, 29 Nov 2019 05:50:44 +0000 (06:50 +0100)]
gl renderer: Scale blur radius

We scale the texture size, so as a consequence we have to scale the blur
radius.

6 years agogl renderer: Add some often needed debug code
Timm Bäder [Thu, 28 Nov 2019 08:01:56 +0000 (09:01 +0100)]
gl renderer: Add some often needed debug code

6 years agogl renderer: Blur shader improvements
Timm Bäder [Tue, 26 Nov 2019 08:38:53 +0000 (09:38 +0100)]
gl renderer: Blur shader improvements

Use a two-pass blur shader, fix a few other things and unify the
blurring of blur nodes and blurred outset shadow nodes.

Related to #1283

6 years agotestblur: Fix default blur radius
Timm Bäder [Tue, 19 Nov 2019 14:40:08 +0000 (15:40 +0100)]
testblur: Fix default blur radius

sync it up with the adjustment value. also just add the destroyed
handler.

6 years agoMerge branch 'improve-popover-menu-style' into 'master'
Matthias Clasen [Mon, 2 Dec 2019 13:19:50 +0000 (13:19 +0000)]
Merge branch 'improve-popover-menu-style' into 'master'

Adwaita: Improve popover.menu styling

See merge request GNOME/gtk!1083

6 years agoAdwaita: Remove unused popover check/radio styling
nana-4 [Thu, 7 Nov 2019 13:50:09 +0000 (22:50 +0900)]
Adwaita: Remove unused popover check/radio styling

6 years agoAdwaita: Flatten circular buttons in popover.menu
nana-4 [Thu, 7 Nov 2019 13:34:01 +0000 (22:34 +0900)]
Adwaita: Flatten circular buttons in popover.menu

Just reuse the list button style.

https://gitlab.gnome.org/GNOME/gtk/issues/1824

6 years agoAdwaita: Make check & radio symbolic icon style in popover.menu
nana-4 [Thu, 7 Nov 2019 13:00:20 +0000 (22:00 +0900)]
Adwaita: Make check & radio symbolic icon style in popover.menu

The disabled modelbutton color needs to be specified explicitly
in order for check & radio to properly read the color with
currentColor.

https://gitlab.gnome.org/GNOME/gtk/issues/1824

6 years agoAdwaita: Improve popover.menu styling
nana-4 [Thu, 7 Nov 2019 12:35:40 +0000 (21:35 +0900)]
Adwaita: Improve popover.menu styling

Based on the mockup:
https://gitlab.gnome.org/Teams/Design/os-mockups/blob/master/menus/menu-design-patterns.png

- Remove horizontal padding from popover.menu contents
- Remove roundness from modelbutton
- Adjust sizing to match the mockup
- Fix visual glitches on button.image-button.model
- Add missing mergin to arrow icons
- Fix accelerator position in rtl direction
- Fix accelerator color

https://gitlab.gnome.org/GNOME/gtk/issues/1824

6 years agoMerge branch 'wip/muktupavels/opaque-region-master' into 'master'
Matthias Clasen [Sun, 1 Dec 2019 15:11:00 +0000 (15:11 +0000)]
Merge branch 'wip/muktupavels/opaque-region-master' into 'master'

window: fix opaque region

See merge request GNOME/gtk!1222

6 years agoMerge branch 'sass-no-extend-compound-master' into 'master'
Matthias Clasen [Sun, 1 Dec 2019 15:09:39 +0000 (15:09 +0000)]
Merge branch 'sass-no-extend-compound-master' into 'master'

themes: remove various @extend with compound selectors

See merge request GNOME/gtk!1223

6 years agothemes: remove various @extend with compound selectors
nana-4 [Sun, 1 Dec 2019 01:43:16 +0000 (10:43 +0900)]
themes: remove various @extend with compound selectors

They are no longer supported by sass and broken with libsass 3.6.3
(https://github.com/sass/libsass/issues/3033)

This removes them by replacing them with a placeholder selector. This at
least brings the resulting CSS size down a bit so gtk can be build
again.

`%button.flat.suggested-action` has been replaced by
`%selection_mode_button_flat`, which is a more appropriate selector for
`.selection-mode button.titlebutton`.

The CSS was generated with libsass 3.5.5.

Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
See https://gitlab.gnome.org/GNOME/gtk/issues/2237

6 years agowindow: fix opaque region
Alberts Muktupāvels [Sat, 30 Nov 2019 18:19:26 +0000 (20:19 +0200)]
window: fix opaque region

Decoration node for drawing is used only for client side decorated
windows, but corners from opaque region is subtracted also for
normal windows.

Rename function to better reflect what it does and do not subtract
corners if decoration node was not used for drawing.

6 years agoMerge branch 'gtk-link-color' into 'master'
Timm Bäder [Sat, 30 Nov 2019 07:40:48 +0000 (07:40 +0000)]
Merge branch 'gtk-link-color' into 'master'

Adwaita: always use link specific colors for link selector

See merge request GNOME/gtk!1201

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 29 Nov 2019 15:21:40 +0000 (15:21 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

some builder-tool tests

See merge request GNOME/gtk!1220

6 years agoUpdate the test scripts
Matthias Clasen [Fri, 29 Nov 2019 14:51:35 +0000 (09:51 -0500)]
Update the test scripts

All tools got renamed to have a gtk4 prefix.

6 years agoAdd a test for the previous fix
Matthias Clasen [Fri, 29 Nov 2019 14:50:04 +0000 (09:50 -0500)]
Add a test for the previous fix

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 29 Nov 2019 14:00:05 +0000 (14:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

builder-tool: Fix handling of layout properties

See merge request GNOME/gtk!1219

6 years agobuilder-tool: Fix handling of layout properties
Matthias Clasen [Fri, 29 Nov 2019 13:47:35 +0000 (08:47 -0500)]
builder-tool: Fix handling of layout properties

We were not properly identifying layout properties
that need to be kept, causing GtkGrid left-attachment
to go missing in widget-factory.ui.

6 years agoFix up widget-factory ui
Matthias Clasen [Fri, 29 Nov 2019 13:34:09 +0000 (08:34 -0500)]
Fix up widget-factory ui

6 years agoMerge branch 'dont-color-labels-directly-gtk4' into 'master'
Timm Bäder [Fri, 29 Nov 2019 11:53:07 +0000 (11:53 +0000)]
Merge branch 'dont-color-labels-directly-gtk4' into 'master'

Adwaita: Avoid directly coloring labels wherever possible (GTK4)

Closes #1643

See merge request GNOME/gtk!1209

6 years agoreftests: Fix css-multi-state test
Timm Bäder [Fri, 29 Nov 2019 10:23:10 +0000 (11:23 +0100)]
reftests: Fix css-multi-state test

Properly unset theme CSS and use the right selector for the toggle
buttons.

6 years agoAdwaita: always use link specific colors for link selector
Carlo Lobrano [Thu, 21 Nov 2019 11:32:37 +0000 (12:32 +0100)]
Adwaita: always use link specific colors for link selector

link target uses `$selected_bg_color` and `$selected_fg_color` for the
definition of some selectors (e.g. selected).

While `$link_color` and `$link_visited_color` are based on
`$selected_bg_color`, this does not seem coherent.

Replacing `$selected_*g_color` in link target style with link colors
defined in `_colors.scss file`.

6 years agowidget-factory: Fix a popover menu
Matthias Clasen [Wed, 27 Nov 2019 22:41:44 +0000 (17:41 -0500)]
widget-factory: Fix a popover menu

This one is manually constructed, and things have
changed enough for that to break. Fix it up.

6 years agogl renderer: Don't use g_assert() for code that should always run
Timm Bäder [Wed, 27 Nov 2019 15:56:47 +0000 (16:56 +0100)]
gl renderer: Don't use g_assert() for code that should always run

g_assert can be compiled out.

6 years agogl renderer: Don't save repeat nodes to disk
Timm Bäder [Wed, 27 Nov 2019 15:47:14 +0000 (16:47 +0100)]
gl renderer: Don't save repeat nodes to disk

This is just debuggin code someone forgot.

6 years agoMerge branch 'single-compilation-symbol' into 'master'
Matthias Clasen [Wed, 27 Nov 2019 15:14:54 +0000 (15:14 +0000)]
Merge branch 'single-compilation-symbol' into 'master'

Use a single compilation symbol

See merge request GNOME/gtk!1216

6 years agoMerge branch 'fix-issue-1646-master' into 'master'
Timm Bäder [Wed, 27 Nov 2019 13:52:08 +0000 (13:52 +0000)]
Merge branch 'fix-issue-1646-master' into 'master'

HighContrast: Add missing color to entry

Closes #1646

See merge request GNOME/gtk!1215

6 years agoUse a single compilation symbol
Emmanuele Bassi [Wed, 27 Nov 2019 13:33:43 +0000 (13:33 +0000)]
Use a single compilation symbol

We use a compilation symbol in our build to allow the inclusion of
specific headers while building GTK, to avoid the need to include only
the global header.

Each namespace has its own compilation symbol because we used to have
different libraries, and strict symbol visibility between libraries;
now that we have a single library, and we can use private symbols across
namespaces while building GTK, we should have a single compilation
symbol, and simplify the build rules.

6 years agoHighContrast: Add missing color to entry
nana-4 [Wed, 27 Nov 2019 13:22:11 +0000 (22:22 +0900)]
HighContrast: Add missing color to entry

So entries don't inherit color from the parent element anymore.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1646

6 years agoMerge branch 'broken-annotation' into 'master'
Timm Bäder [Wed, 27 Nov 2019 06:46:15 +0000 (06:46 +0000)]
Merge branch 'broken-annotation' into 'master'

builder: Fix broken annotation

See merge request GNOME/gtk!1213

6 years agobuilder: Fix broken annotation
Robert Ancell [Wed, 27 Nov 2019 03:06:36 +0000 (16:06 +1300)]
builder: Fix broken annotation

Missing a ':', was introduced in 0627bba5a0d.

6 years agogl renderer: Load flipped-y offscreen vertex data directly
Timm Bäder [Tue, 26 Nov 2019 07:58:38 +0000 (08:58 +0100)]
gl renderer: Load flipped-y offscreen vertex data directly

Instead of loading the unflipped version first and then flipping it.
Don't do it in add_render_ops either but only in the function actually
adding the render ops for the nodes, since those frequently have
early-out conditions that don't need the vertex data at all.

6 years agotestsuite: Add another repeat node test case
Timm Bäder [Tue, 26 Nov 2019 07:41:23 +0000 (08:41 +0100)]
testsuite: Add another repeat node test case

6 years agogl renderer: Fix repeat node shader once again
Timm Bäder [Tue, 26 Nov 2019 07:38:41 +0000 (08:38 +0100)]
gl renderer: Fix repeat node shader once again

6 years agogl renderer: Care more about 0×0 offscreen nodes
Timm Bäder [Sat, 23 Nov 2019 09:20:15 +0000 (10:20 +0100)]
gl renderer: Care more about 0×0 offscreen nodes

These never result in a rendering of course, but we must make sure not
to create a 0×0 texture for them, since that will cause problems later
on.

6 years agoMerge branch 'unsafe-strdup-printf' into 'master'
Timm Bäder [Tue, 26 Nov 2019 07:11:19 +0000 (07:11 +0000)]
Merge branch 'unsafe-strdup-printf' into 'master'

gtk-demo: Fix incorrect use of g_strdup_printf

See merge request GNOME/gtk!1211

6 years agogtk-demo: Fix incorrect use of g_strdup_printf
Robert Ancell [Mon, 25 Nov 2019 21:11:28 +0000 (10:11 +1300)]
gtk-demo: Fix incorrect use of g_strdup_printf

Was broken in a refactoring in 4a2f313

6 years agoAdwaita: Avoid directly coloring labels wherever possible
nana-4 [Mon, 25 Nov 2019 15:39:33 +0000 (00:39 +0900)]
Adwaita: Avoid directly coloring labels wherever possible

Directly coloring labels can create a lot of unintended behaviors.
Unfortunately we can't avoid directly coloring `label:disabled` because
it can be used individually. This, however, tries to inherit color from
the parent element of labels wherever possible.

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1643

6 years agotestsuite: Fix expected test output
Benjamin Otte [Sat, 23 Nov 2019 18:33:36 +0000 (19:33 +0100)]
testsuite: Fix expected test output

This reverts part of 91497348bf1ea90ef1056bdc8727bbea645c21e3

6 years agocssprovider: Don't add empty rulesets
Benjamin Otte [Sat, 23 Nov 2019 18:01:28 +0000 (19:01 +0100)]
cssprovider: Don't add empty rulesets

This change was lost during the parser changes, but the newly added test
exposes it.

And fix the expected error, the syntax has changed.

6 years agoFix crash in parse_border()
Alexandr Miloslavskiy [Thu, 21 Nov 2019 19:26:22 +0000 (20:26 +0100)]
Fix crash in parse_border()

The bug was introduced in commit:
9b7640b8 by Benjamin Otte, 2012-03-26 17:24:02
styleproperty: Make _gtk_style_property_parse_value() return a CssValue

In that commit, `values` changed from `GValue*` to `GtkCssValue**`,
but one `!G_IS_VALUE (&values[8])` was left untouched. As a result,
if `border` shorthand contains anything after color, it might crash,
depending on memory layout.

New test included.

Fixes: #751
6 years agoMerge branch 'wip/otte/builder' into 'master'
Benjamin Otte [Sat, 23 Nov 2019 17:09:15 +0000 (17:09 +0000)]
Merge branch 'wip/otte/builder' into 'master'

Reorganize various GtkBuilder things

See merge request GNOME/gtk!1204

6 years agobuilder: Make the struct private
Benjamin Otte [Fri, 22 Nov 2019 07:29:32 +0000 (08:29 +0100)]
builder: Make the struct private

We don't want anyone to subclass it - if we want to allow bindings to
extend GtkBuilder, we will be using delegate objects/functions for it.

6 years agobuilder: Remove get_type_from_name() vfunc
Benjamin Otte [Fri, 22 Nov 2019 07:25:29 +0000 (08:25 +0100)]
builder: Remove get_type_from_name() vfunc

6 years agobuilder: Improve signal connecting
Benjamin Otte [Fri, 22 Nov 2019 07:06:35 +0000 (08:06 +0100)]
builder: Improve signal connecting

- Propagate the error back to the parser, so we get a proper GError
  instead of a g_warning().
- Connect closures by id, don't construct a name from the ids so that
  glib can take it apart again.

6 years agobuilder: Connect signals automatically
Benjamin Otte [Fri, 22 Nov 2019 05:31:33 +0000 (06:31 +0100)]
builder: Connect signals automatically

gtk_builder_connect_signals() is no longer necessary, because all the
setup that made it necessary to have this extra step is now done
automatically via the closure functions.

6 years agoreftests: Switch to gtk_builder_set_closure_func()
Benjamin Otte [Fri, 22 Nov 2019 00:42:48 +0000 (01:42 +0100)]
reftests: Switch to gtk_builder_set_closure_func()

6 years agowidget: Change templates to use closure functions
Benjamin Otte [Fri, 22 Nov 2019 05:54:52 +0000 (06:54 +0100)]
widget: Change templates to use closure functions

... instead of connect functions.

6 years agobuilder: Add gtk_builder_set_closure_func()
Benjamin Otte [Thu, 21 Nov 2019 23:18:19 +0000 (00:18 +0100)]
builder: Add gtk_builder_set_closure_func()

This allows bindings and templates to setup a way to create closures.

6 years agowidget: Reinstate custom closure func
Benjamin Otte [Thu, 21 Nov 2019 20:30:38 +0000 (21:30 +0100)]
widget: Reinstate custom closure func

It turns out it ws used in various places.

6 years agobuilder: Add gtk_builder_create_closure()
Benjamin Otte [Thu, 21 Nov 2019 20:20:16 +0000 (21:20 +0100)]
builder: Add gtk_builder_create_closure()

This will be the future way to connect signals automatically (and be
used for other things, too).

For now, gtk_builder_connect_signals_default() is ported to use it.

6 years agobuilder: Remove user_data argument from gtk_builder_connect_signals()
Benjamin Otte [Thu, 21 Nov 2019 18:36:06 +0000 (19:36 +0100)]
builder: Remove user_data argument from gtk_builder_connect_signals()

This is pretty unused and gets in the way of the next steps.

A potential side effect is that for templates the widget was passed as
the user data argument. If that turns out to be important, we have to
special case that situation.

6 years agobuilder: Remove application setter/getter
Benjamin Otte [Mon, 18 Nov 2019 03:56:36 +0000 (04:56 +0100)]
builder: Remove application setter/getter

It's unused and doesn't belong to GtkBuilder.

6 years agobuilder: Carry the module as part of the GtkBuilder object
Benjamin Otte [Mon, 18 Nov 2019 03:52:35 +0000 (04:52 +0100)]
builder: Carry the module as part of the GtkBuilder object

This way, we don't open the module in every place we want to look up
functions.

6 years agobuilder: Fix typo in docs
Benjamin Otte [Mon, 18 Nov 2019 00:11:24 +0000 (01:11 +0100)]
builder: Fix typo in docs

6 years agotestsuite: Print useful statement on notify test error
Benjamin Otte [Tue, 5 Nov 2019 22:46:01 +0000 (23:46 +0100)]
testsuite: Print useful statement on notify test error

... and don't instantly abort, test the rest of the properties, too.

6 years agotypes: Remove and unused typedef
Benjamin Otte [Thu, 21 Nov 2019 14:39:48 +0000 (15:39 +0100)]
types: Remove and unused typedef

GtkRcPropertyParser is gone.

6 years agosettings: Remove RC property parsers
Benjamin Otte [Sun, 17 Nov 2019 01:39:17 +0000 (02:39 +0100)]
settings: Remove RC property parsers

They've not been used for a long time and the APIs where they could
reasonably be used have been gone for as long.

6 years agosettings: Remove code dealing with property parsers
Benjamin Otte [Sun, 17 Nov 2019 01:34:38 +0000 (02:34 +0100)]
settings: Remove code dealing with property parsers

They only remained in private code where they were always set to NULL.

6 years agoadwaita: level bar refinements
Sam Hewitt [Tue, 19 Nov 2019 16:46:18 +0000 (11:46 -0500)]
adwaita: level bar refinements
 - shave a few pixels off large level bar
 - thinner discrete level bar

6 years agogl renderer: Remove unused function
Timm Bäder [Tue, 19 Nov 2019 10:06:08 +0000 (11:06 +0100)]
gl renderer: Remove unused function

6 years agotestsuite: Add a testcase for repeat nodes that don't repeat
Timm Bäder [Tue, 19 Nov 2019 09:45:35 +0000 (10:45 +0100)]
testsuite: Add a testcase for repeat nodes that don't repeat

6 years agogl renderer: Add a short cut for repeat nodes that don't repeat
Timm Bäder [Tue, 19 Nov 2019 09:45:02 +0000 (10:45 +0100)]
gl renderer: Add a short cut for repeat nodes that don't repeat

These happen and we don't even need to draw the child to a texture.

6 years agogl renderer: Fix repeat nodes that don't repeat
Timm Bäder [Tue, 19 Nov 2019 09:31:21 +0000 (10:31 +0100)]
gl renderer: Fix repeat nodes that don't repeat

Fixes #2234

6 years agocsstokenizer: Plug a leak
Timm Bäder [Tue, 19 Nov 2019 08:37:45 +0000 (09:37 +0100)]
csstokenizer: Plug a leak

6 years agorendernodeparser: Only report a GError* if we have one
Timm Bäder [Tue, 19 Nov 2019 08:37:26 +0000 (09:37 +0100)]
rendernodeparser: Only report a GError* if we have one

6 years agorendernodeparser: Handle resolving NULL urls
Timm Bäder [Tue, 19 Nov 2019 08:37:03 +0000 (09:37 +0100)]
rendernodeparser: Handle resolving NULL urls

6 years agodocs: Add migration note for iconify → minimize
Emmanuele Bassi [Mon, 18 Nov 2019 14:10:40 +0000 (14:10 +0000)]
docs: Add migration note for iconify → minimize

See commit b70e4f6de95b.

6 years agoUpdated Spanish translation
Daniel Mustieles [Mon, 18 Nov 2019 14:08:59 +0000 (15:08 +0100)]
Updated Spanish translation

6 years agoMerge branch 'gdk-backend-imports' into 'master'
Emmanuele Bassi [Mon, 18 Nov 2019 10:27:32 +0000 (10:27 +0000)]
Merge branch 'gdk-backend-imports' into 'master'

Correct Gdk backend import paths and related gtk-doc

See merge request GNOME/gtk!1197

6 years agoCorrect Gdk backend import paths and related gtk-doc
Andy Holmes [Mon, 18 Nov 2019 08:31:38 +0000 (00:31 -0800)]
Correct Gdk backend import paths and related gtk-doc

Correct the paths in the include guard warnings and use the `@Include`
directive for the Gdk backends.

6 years agoMerge branch 'seal-popover-menu' into 'master'
Matthias Clasen [Mon, 18 Nov 2019 01:57:55 +0000 (01:57 +0000)]
Merge branch 'seal-popover-menu' into 'master'

Privatize popover menu pieces

See merge request GNOME/gtk!925

6 years agoMerge branch 'signal-naming' into 'master'
Matthias Clasen [Mon, 18 Nov 2019 01:55:34 +0000 (01:55 +0000)]
Merge branch 'signal-naming' into 'master'

gtkstyleprovider: Rename -gtk-style-changed signal to have a valid name

See merge request GNOME/gtk!1176

6 years agoMerge branch 'issue-67' into 'master'
Matthias Clasen [Mon, 18 Nov 2019 00:52:53 +0000 (00:52 +0000)]
Merge branch 'issue-67' into 'master'

Rename "iconify" to "minimize"

Closes #67

See merge request GNOME/gtk!1190

6 years agoMerge branch 'meson-bump' into 'master'
Emmanuele Bassi [Sat, 16 Nov 2019 20:26:31 +0000 (20:26 +0000)]
Merge branch 'meson-bump' into 'master'

Bump up the required version of Meson

See merge request GNOME/gtk!1191

6 years agoDisable GdkSurface.minimize on Wayland
Emmanuele Bassi [Sat, 16 Nov 2019 20:04:00 +0000 (20:04 +0000)]
Disable GdkSurface.minimize on Wayland

The existing xdg-shell protocols do not support minimization in a way
that allows us to implement the GdkSurface API; the only minimization
operation does not come with a state notification, nor it comes with
a way to undo itself.

Closes: #67
6 years agoRename "iconify" to "minimize"
Emmanuele Bassi [Sat, 16 Nov 2019 19:50:57 +0000 (19:50 +0000)]
Rename "iconify" to "minimize"

The "iconified" state is mostly an X11-ism; every other platform calls
this state "minimized" because it may not involve turning a window into
an icon at all.

6 years agoBump up the required version of Meson
Emmanuele Bassi [Fri, 8 Nov 2019 15:04:41 +0000 (15:04 +0000)]
Bump up the required version of Meson

Match the one we're testing on our CI infrastructure.

6 years agoMerge branch 'gdkx-import-doc' into 'master'
Emmanuele Bassi [Sat, 16 Nov 2019 18:19:26 +0000 (18:19 +0000)]
Merge branch 'gdkx-import-doc' into 'master'

Correct GdkX11 import path in docs and include guards

Closes #2254

See merge request GNOME/gtk!1188

6 years agoCorrect GdkX11 import path in docs and include guards
Andy Holmes [Fri, 15 Nov 2019 21:13:26 +0000 (13:13 -0800)]
Correct GdkX11 import path in docs and include guards

Update the include directives in the documentation, as well as the
include guards in headers, to point to gdk/x11/gdkx.h.

closes #2254

6 years agoMerge branch 'fix-menu-check-radio-styling-gtk4' into 'master'
Emmanuele Bassi [Fri, 15 Nov 2019 23:26:17 +0000 (23:26 +0000)]
Merge branch 'fix-menu-check-radio-styling-gtk4' into 'master'

Adwaita: Fix check/radio styling in menu (GTK4)

See merge request GNOME/gtk!1187

6 years agoMerge branch 'dont-hardcode-shared-library' into 'master'
Emmanuele Bassi [Fri, 15 Nov 2019 23:24:42 +0000 (23:24 +0000)]
Merge branch 'dont-hardcode-shared-library' into 'master'

build: Don't hardcode shared_library() in meson

See merge request GNOME/gtk!1172

6 years agoTry building static libs on CI
Niklas Hambüchen [Mon, 11 Nov 2019 19:11:16 +0000 (20:11 +0100)]
Try building static libs on CI

6 years agoAdwaita: Fix check/radio styling in menu
nana-4 [Fri, 15 Nov 2019 16:08:44 +0000 (01:08 +0900)]
Adwaita: Fix check/radio styling in menu

The new check/radio style increased their specificity, but it was not
synchronized in the menu styling.

This commit increases the specificity to match the updated check/radio
styling.

https://gitlab.gnome.org/GNOME/gtk/issues/2096

6 years agoMerge branch 'building-docs' into 'master'
Emmanuele Bassi [Fri, 15 Nov 2019 13:05:39 +0000 (13:05 +0000)]
Merge branch 'building-docs' into 'master'

Document the use of build types when configuing GTK

See merge request GNOME/gtk!1113

6 years agoMerge branch 'Master_checkradio_refresh' into 'master'
Emmanuele Bassi [Fri, 15 Nov 2019 12:36:12 +0000 (12:36 +0000)]
Merge branch 'Master_checkradio_refresh' into 'master'

Refresh check/radio styling, ported from gtk3

See merge request GNOME/gtk!1175

6 years agoRefresh check/radio styling, ported from gtk3
frederik.feichtmeier [Fri, 15 Nov 2019 12:16:07 +0000 (13:16 +0100)]
Refresh check/radio styling, ported from gtk3

6 years agoMerge branch 'fix-emoji-picker-styling' into 'master'
Emmanuele Bassi [Thu, 14 Nov 2019 16:30:49 +0000 (16:30 +0000)]
Merge branch 'fix-emoji-picker-styling' into 'master'

Adwaita: Fix emoji picker styling (GTK4)

See merge request GNOME/gtk!1181

6 years agoAdwaita: Fix emoji picker styling
nana-4 [Thu, 14 Nov 2019 15:04:18 +0000 (00:04 +0900)]
Adwaita: Fix emoji picker styling

- Adjust the emoji picker appearance to be the same as gtk3's.
- Fix button.emoji-section margins in RTL.
- Prevent the .emoji hover effect from being applied to the entire
  nested popover.

6 years agoheaderbar: Disconnect signal handlers when children are removed
Kjell Ahlstedt [Wed, 13 Nov 2019 14:20:34 +0000 (15:20 +0100)]
headerbar: Disconnect signal handlers when children are removed

The signal handler that calls notify_child_cb() is disconnected
from a child widget before the child is removed from the header bar.
gtk_header_bar_dispose() chains up before destroying the start and end
boxes, thus avoiding calls to notify_child_cb() after start_box and
end_box have been cleared.

Fixes #2246